package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.model.Recommend;
import com.example.demo.model.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RecommendService extends IService<Recommend> {
    long add(Recommend recommend);

    boolean isExists(String url);
    //随机推荐
    List<Recommend> randomRecommend();
    //根据关键词推荐
    List<Recommend> RecommendByKeywords(String keywords);

    //根据URL查找Recommend
    Recommend queryRecommendByUrl(String url);
}
